#ifndef ATTRDELEGATE_H
#define ATTRDELEGATE_H

#include <QItemDelegate>

class AttrDelegate : public QItemDelegate
{
public:
	AttrDelegate(QObject *parent);
	~AttrDelegate();
	
	QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
		const QModelIndex &index) const;

	void setEditorData(QWidget *editor, const QModelIndex &index) const;
	void setModelData(QWidget *editor, QAbstractItemModel *model,
		const QModelIndex &index) const;

	void updateEditorGeometry(QWidget *editor,
		const QStyleOptionViewItem &option, const QModelIndex &index) const;
private:
	
};

#endif // ATTRDELEGATE_H
